﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace RefOffPDA
{
    /*
     * Class: Player
     * 
     * Use: Models a Player object within the match, to hold all the details of
     *      a player that are required during a match, to avoid constant database
     *      access
     *      
     * Author: Mike Skaife, mcs3@aber.ac.uk
     */      
    class Player
    {
        //Variables to hold details of the Player

        //surname
        private String pSurname;
        //number
        private int pNumber;
        //database id
        private int pPlayer_id;
        //whether player is on pitch or on subs bench
        private int pOn_pitch;
        
        public Player()
        {
        }

        //Set and Get surname of the player
        public String surname
        {
            get
            {
                return pSurname;
            }

            set
            {
                pSurname = value;
            }
        }

        //Set and Get number of the player
        public int number
        {
            get
            {
                return pNumber;
            }

            set
            {
                pNumber = value;
            }
        }

        //Set and Get the id of the player
        public int player_id
        {
            get
            {
                return pPlayer_id;
            }

            set
            {
                pPlayer_id = value;
            }
        }

        //Set and Get the on_pitch value for the player, indicating
        //whether the player is on the pitch or on the subs bench
        public int on_pitch
        {
            get
            {
                return pOn_pitch;
            }

            set
            {
                pOn_pitch = value;
            }
        }

    }
}
